﻿using System.IO;
using Amazon.S3.Transfer;
using System.Diagnostics.Contracts;

namespace AmazonS3PublishPlugin
{
    public class UploadInfo
    {
        public UploadInfo(TransferUtilityUploadRequest request, FileInfo file, double progress)
        {
            Contract.Requires(request != null);
            Contract.Requires(file != null);
            Contract.Requires(progress > 0 && progress <= 1);

            Request = request;
            File = file;
            Progress = progress;
        }

        public TransferUtilityUploadRequest Request { get; private set; }

        public FileInfo File { get; private set; }

        public double Progress { get; private set; }
    }
}
